package com.lanyou.cook.repository;

import java.util.List;

import org.springframework.data.repository.Repository;
import org.springframework.data.rest.core.annotation.RestResource;

import com.lanyou.cook.entity.kettle.KettleDatabaseType;

public interface KettleDataBaseTypeRepository extends Repository<KettleDatabaseType, Long> {

	@RestResource(exported=true)
	KettleDatabaseType findOne(Long id);	// could expose REST API
	
	@RestResource(exported=true)
	List<KettleDatabaseType> findAll();	// could expose REST API
	
	@RestResource(exported=false)
	KettleDatabaseType save(KettleDatabaseType entity);	// could expose REST API
	
	@RestResource(exported=false)
	KettleDatabaseType findByCode(String code);	// could expose REST API
}
